package com.szholly.pro.watergas_server.common.util;

import com.szholly.data.general.RowBase;

import java.util.Comparator;

/**
 * 站点排序类，按照在线状况排序
 * @author gislin
 * 2016年3月29日
 */
public class StationOnlineCompare implements Comparator<RowBase> {

	@Override
	public int compare(RowBase arg0, RowBase arg1) {
		String onlineStatus0 = "";
		String onlineStatus1 = "";
		onlineStatus0 = arg0.getSafeString("STATION_STATUS");
		onlineStatus1 = arg1.getSafeString("STATION_STATUS");
		return onlineStatus0.compareTo(onlineStatus1);
	}
	
}
